<?php
namespace app\shop\validate\company;
use think\Validate;
class Study extends Validate
{
    protected $rule = [
        'id' => 'require',
        'title' => 'require',
        'content' => 'require',
        'video' => 'require'
    ];
    protected $message = [
        'id.require' => '参数错误',
        'title.require' => '请输入标题',
        'content.require' => '请输入内容',
        'video.require' => '请上传视频'
    ];
    protected $scene = [
        'add' => ['title', 'video'],
        'edit' => ['id', 'title', 'video'],
        'info' => ['id'],
    ];
}